package com.atguigu.yygh.cmn;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})
@MapperScan("com.atguigu.yygh.cmn.mapper")//扫描持久化层
@Slf4j
@EnableDiscoveryClient//使用nacos(乃扣斯)把微服务注册到nacos(乃扣斯)注册中心，一共三步，这是第三步，同理上传几个微服务就去填几个
public class ServiceCmnApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceCmnApplication.class, args);
        log.info("[项目启动了...]");
    }
}